package com.spring.dao.Impl;


import com.spring.dao.BookDao;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @author:CoolTiger
 * @description: TODO
 * @date:2024/04/23/22:38:21
 **/
@Repository
public class BookDaoImpl implements BookDao {

    public void save() {
        System.out.println("BookDao save ... ");
    }
    @PostConstruct
    public void init(){
        System.out.println("book init...");
    }
    @PreDestroy
    public void destroy(){
        System.out.println("book destroy...");
    }
}
